﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="InputExamItems.aspx.cs" Inherits="ExamAnalysis.Input.InputExamItems" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<ext:ComboBox ID="cbSubject" 
                runat="server"
                FieldLabel="选择科目"
                DisplayField="SubjectName"
                 ValueField="SubjectID"
                Width="320"
                LabelWidth="130"
                QueryMode="Local"               
                TypeAhead="true">
                <Store>
                    <ext:Store ID="Store1" runat="server" DataSourceID="LinqDataSource1">
                        <Model>
                            <ext:Model ID="Model1" runat="server">
                                <Fields>
                                    <ext:ModelField Name="SubjectID" />
                                    <ext:ModelField Name="SubjectCode" />
                                    <ext:ModelField Name="SubjectName" />
                                </Fields>
                            </ext:Model>
                        </Model>
                    </ext:Store>
                </Store>
            
            </ext:ComboBox>


    在这里添加科目，下载 
        <ext:FileUploadField ID="FileField" runat="server" Width="400" Icon="Attach"   ButtonText="浏览"/>
    <ext:Button ID="btnUpload" runat="server" Text="确定上传" OnDirectClick="btnUpload_DirectClick">
    </ext:Button>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="ExamAnalysis.Model.ExamAnalysisDataContext" EntityTypeName="" 
        Select="new (SubjectID, SubjectCode, SubjectName)" TableName="SubjectInfo">
    </asp:LinqDataSource>
</asp:Content>
